﻿using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MvcMall.Framework.File;

namespace MvcMall.AdminWeb
{
    public partial class UploadTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            var data = Request.Files[0].InputStream;
           IFileAttachmentUtility _fileAttachmentUtility=new FileAttachmentUtility();
            Response.Write(_fileAttachmentUtility.SaveAttach(data, "system/gejin/", Request.Files[0].FileName, true));
        }
    }
}